package com.chen.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author chen
 * @version 1.0
 * @date 2025/8/15
 * 登录返回数据模型
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "登录返回数据模型")
public class LoginUserVo {

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "登录是否成功")
    private boolean success;

    @Schema(description = "登录消息")
    private String msg;

    @Schema(description = "区域ID")
    private String regionId;

    @Schema(description = "是否为维修人员")
    private boolean repair;

    @Schema(description = "访问令牌")
    private String token;
}